package org.xinjiang.tarim.travel.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.xinjiang.tarim.travel.model.Topic;
import org.xinjiang.tarim.travel.vo.Criteria;

import java.util.List;

@Mapper
@Component("TopicMapper")
public interface TopicMapper {
    int insertByList(List<Topic> topics);

    int insert(Topic topic);

    Long selectByConditionCount(Criteria criteria);

    List<Topic> selectByCondition(Criteria criteria);

    List<Topic> selectByPrimaryKeys(List list);

    Topic selectByPrimaryKey(Long id);
}